package az.mecid.rssreader.client.services.utils;

import com.google.gwt.core.client.RunAsyncCallback;
import com.google.gwt.user.client.Window;

/**
 * Created by IntelliJ IDEA.
 * User: mega
 * Date: 14.04.2010
 * Time: 15:52:26
 */
public abstract class RunCallback implements RunAsyncCallback{
    public void onFailure(Throwable throwable) {
        Window.alert("Ooops..Error..Try Again..");
    }

    public void onSuccess() {
        done();
    }

    public abstract void done();
}
